<include file="Public/header" />
<title>企业管理</title>
</head>
<body>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
        <form class="formleft" name="" id="" action="__URL__/config/" method="get">
			<input class="input-text" style="width:200px" type="text" value="<{$_GET['val']}>" placeholder="名称" name="en_name">
			<button type="submit" class="btn btn-success"><i class="icon-plus"></i> 查询</button>
		</form>
		<span class="r">共有数据：<strong><{$count}></strong> 条</span> 
    </div>
    <div class="mt-20">
		<table class="table table-border table-bordered table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="15">订单列表</th>
			</tr>
			<tr class="text-c">
				<th>ID</th>
				<th width="">变量名称</th>
				<th width="">英文名称</th>
				<th width="">值</th>
				<th width="">添加时间</th>
				<th width="">操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
			<tr class="text-c">
				<td><{$i}></td>
				<td><{$vo.name}></td>
				<td><{$vo.en_name}></td>
				<td><{$vo.value}></td>
				<td><{$vo.add_time|date="Y-m-d",###}></td>
				<td>
					<a style="text-decoration:none" class="ml-5" onclick="edit('<{$vo.id}>','<{:I('user_id')}>')" href="javascript:;" title="编辑"><i class="Hui-iconfont"></i></a>
                    
				</td>
			</tr>
			</volist>			
		</tbody>
	</table>
	<div class="page mt" style="text-align:right"><{$page}></div>
</div>
<include file="Public/footer" />
<include file="Public/footer_js" />
<script>
    function edit(id,user_id){
        var index=layer.open({
            type: 2,
            title: '修改',
            shadeClose: true,
            shade: 0.5,
            area: ['600px', '400px'],
            content: '__MODULE__/Company/edit_config/id/'+id+'/user_id/'+user_id //iframe的url
        });
    }
</script>
</body>
</html>